package com.javasm.entity;

import lombok.Getter;

/**
 * @version 0.1
 * @className: ReturnCodeEnum
 * @description:
 * @author: gfs
 * @date: 2025/6/10 15:03
 * @since: jdk17
 */
@Getter
public enum ReturnCodeEnum {

//    USERNAME_OK(3000,"用户名可用"),
//    USERNAME_NO_OK(3001,"用户名不可用"),
    QUERY_SUCCESS(2000,"查询成功"),
    QUERY_NODATA(2001,"没有数据"),
    DATA_OPERATION_SUCCESS(2010,"操作成功"),
    DATA_OPERATION_FAILED(2011,"操作失败"),
    DATA_OPERATION_FAILED_SUBDATA(2012,"清除子数据再删除"),
    UPLOAD_SUCCESS(2050,"上传成功...."),
    LOGIN_SUCCESS(1000,"登录成功"),
    NAMEPWD_ERROR(1001,"用户名或密码错误"),
    USER_OFF(1002,"用户已离职"),
    NOT_LOGIN(1010,"没有登录"),
    NO_PORMISSION(1011,"没有权限"),
    LOGOUT_SUCCESS(1005,"登出成功...")
    ;



    private Integer code;
    private String msg;

    ReturnCodeEnum(Integer code,String msg){
        this.code = code;
        this.msg  = msg;
    }



}
